package com.ruoyi.business.service.product;


import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.business.domain.dto.admin.product.ExamineOrderDTO;
import com.ruoyi.business.domain.dto.admin.product.OrderDTO;
import com.ruoyi.business.domain.dto.api.user.CreateOrderDTO;
import com.ruoyi.business.domain.product.TbOrder;
import com.ruoyi.business.domain.vo.order.OrderVo;
import com.ruoyi.business.domain.vo.product.OrderExamineVo;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.page.TableDataInfo;

import java.util.List;

/**
 * 订单Service接口
 */
public interface TbOrderService extends IService<TbOrder> {

    R<TbOrder> pointsMallCreate(Long userId, CreateOrderDTO dto);

    R<List<OrderExamineVo>> orderExamine(ExamineOrderDTO examineOrderDTO);

    R<Boolean> orderCancel(ExamineOrderDTO examineOrderDTO);

    TableDataInfo<OrderVo> pointsMallOrder(OrderDTO dto);


    OrderVo getDetilById(Long id);

    R<Boolean> pointsMallVer(Long userId, CreateOrderDTO dto);
}
